

#include "../../matrix/matrix.h"

#include "immorph.h"

void imp_image_morph_close(ImpMatrix * Mat, ImpMatrix * SE, ImpMatrix ** Close) {
	
	ImpMatrix * TMP = NULL;
	
	imp_image_morph_dilate(Mat, SE, &TMP);
	imp_image_morph_erode(TMP, SE, Close);
	
	imp_object_delete(TMP);
	
}
